<div class="form">
    <?php echo validation_errors(); ?>
    <?php echo form_open('welcome/login'); ?>
    <div>
        <label class="span-2">用户名<span class="required">*</span></label>
        <input class="text span-4" id="u_name" name="u_name" 
               value="<?php echo set_value('u_name'); ?>" />
        <div class="clear"></div>
    </div>
    <div>
        <label class="span-2">密码<span class="required">*</span></label>
        <input class="text span-4" type="password" id="u_password" name="u_password" 
               value="<?php echo set_value('u_password', ''); ?>" />
        <div class="clear"></div>
    </div>
    <div>
        <label class="span-2">&nbsp;</label>
        <button type="submit">登录</button>
        <div class="clear"></div>
    </div>
    </form>
</div>
<script>
    $(function() {
        $("button").button();
    });
</script>

